{% extends "memebase/base.html" %}
{% load render_meme %}
{% block content %}

{% if user_can_create_meme %}
<h1>Create Meme</h1>
<form method="post" action="{% url create_new_meme sitename %}">
<table>
{{form_create}}
</table>
<input type="submit" name="button" />
</form>
{% endif %}

<h1>Memes listing:</h1>
{% if memes %}
<ol>
{% for meme in memes %}
    <li>
    {% render_meme meme %}
    </li>
{% endfor %}
</ol>
{% endif %}
{% endblock content %}
